<?php
use yii\helpers\Url;
?>

<a href="<?=Url::to(['runoob/add'])?>">添加用户</a>
<div class="runoob-index">
    <?php
    foreach ($runoobList as $item){
        echo $item['title']." ".$item['author']." ".$item['date']."<a href=".Url::to(['runoob/update','id'=>$item['id']]).">"."修改</a>
         <a href=".Url::to(['runoob/delete','id'=>$item['id']]).">删除</a> <br />";
    }
    ?>
</div>
